import { EventName } from './Scripts/Framework/Event/EventName';
import { GlobalEvent } from './Scripts/Framework/Event/GlobalEvent';
//------------------------------------------------------------
// * Author         : Ekko
// * Description    : 测试脚本
//------------------------------------------------------------

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    onLoad () {
        GlobalEvent.getInst().add(EventName.TEST, function(param){
            cc.log("=======================", param);   
        });
    }

    start () {
        
    }

    update (dt) {
        GlobalEvent.getInst().fire(EventName.TEST, "TEST!!");
    }
}
